<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>活动名额</title>
    <#include "/view/admin/headList.html"/>
    <style>
        .table-bordered{
            width:100%;
            text-align: center;
            margin:0;
        }
        .table-bordered th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        .table-bordered td {
            width: 20%;
            text-align: left;
        }
        .table-list th{
            text-align: center;
        }
        .table-list td{
            text-align: center;
        }
    </style>
</head>
<body>
<hr/>
<table class="table table-bordered">
    <tr>
        <th>活动名额图片</th>
        <td>
            <img src="${base}${entity.prizePath!}" height="100px;">
        </td>
        <th>活动图片</th>
        <td>
            <img src="${base}${entity.festPic!}" height="100px;">
        </td>
    </tr>
    <tr>
        <th>活动名额名称</th>
        <td>
            ${entity.thingName!}
        </td>
        <th>活动名称</th>
        <td>
            ${entity.festName!}
        </td>
    </tr>
    <tr>

        <th>优惠总数</th>
        <td>
            ${entity.countnum!}
        </td>
    </tr>
    <tr>
        <th>已分配数量</th>
        <td>
            ${entity.chouqunum!}
        </td>
        <th>待分配数量</th>
        <td>
            ${entity.shengyunum!}
        </td>
    </tr>
    <tr>
        <th>创建时间</th>
        <td>
            ${entity.createtime?string('yyyy-MM-dd HH:mm:ss')}
        </td>
        <th>有效时间</th>
        <td>
            ${entity.validDate?string('yyyy-MM-dd HH:mm:ss')}
        </td>
    </tr>
</table>

<hr/>




<table class="table table-hover table-bordered table-list" >
    <thead>

    <tr class="table-head">
        <th width="30px;">序号</th>
        <th class="label-hidden">奖品库活动优惠券id</th>
        <th>手机号</th>
        <th>用户</th>
        <th>使用状态</th>
        <th>中奖时间</th>
    </tr>
    </thead>
    <tbody>
    <#list pagination.list as c>
        <tr>
            <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
            <td class="label-hidden">${c.awardId!}</td>
            <td>${c.telephone!}</td>
            <td>${c.nickname!}</td>

            <td>
                <#if c.status??>
                    <#if c.status==3>未开始
                        <#elseif c.status==4>未使用
                            <#elseif c.status==5>已使用
                                <#elseif c.status==6>已过期
                                    <#elseif c.status==0>待支付
                                        <#elseif c.status==1>支付成功
                                            <#elseif c.status==2>支付失败
                                                <#elseif c.status==7>待收货
                                                    <#elseif c.status==8>已完成
                                                        <#elseif c.status==9>已关闭
                                                            <#elseif c.status==10>取消订单中
                                                                <#elseif c.status==17>订单已取消
                                                                    <#elseif c.status==15>机器自动确定
                                                                        <#elseif c.status==11>已领取
                                                                            <#elseif c.status==12>未领取
                                                                                <#elseif c.status==13>待发货
                                                                                    <#elseif c.status==14>退款失败
                                                                                        <#elseif c.status==16>申请退款
                                                                                            <#elseif c.status==18>退货成功
                                                                                                <#elseif c.status==19>订单已取消
                    </#if>

                </#if>
            </td>

            <td><#if c.createtime??>${c.createtime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>

        </tr>


    </#list>
    </tbody>
</table>



</div>
<script>

    function queryCondition(){
        var href = "id=${entity.awardstockId!}";

        return href;
    }

</script>

</body>
</html>